package com.itheima.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author: 放学后海堤日记
 * @Date: 2023/4/14 22:51
 * @Desc: 文件上传业务接口
 */
public interface FileService {
    /**
     * 获取阿里云OSS里的图片
     * @param name
     * @param response
     * @throws IOException
     */
    void download(String name, HttpServletResponse response) throws IOException;

    /**
     * 上传图片
     * @param file
     * @return
     * @throws IOException
     */
    String upload(MultipartFile file) throws IOException;
}
